/*
 * IM - Image I/O Library
 * Copyright (c) 1996 CENPES/Petrobras, TeCGraf/PUC-Rio.
 * Antonio E. Scuri - scuri@tecgraf.puc-rio.br
 * 
 * IM.C
 * 
 * Contains the implementation of the list initialization function.
 * It knows all the file formats and all the callbacks.
 *
 * History:
 *          1996.04.05 - Finished inicial version.
 *
 */

#include "im.h"
#include "imio.h"

#include "imbmp.h"
#include "impcx.h"
#include "imras.h"
#include "imgif.h"
#include "imsgi.h"
#include "imtif.h"
#include "imjpg.h"
#include "imled.h"
#include "imtga.h"

#include <string.h>


static char im_ver[] = "TECVERID.str:IM:LIB:2.6";

char* imVersion(void)
{
  return im_ver + strlen("TECVERID.str:IM:LIB:");
}


/* implememted in the IMIO.C module and used only here and there */
void imAddFormatInit(imFormat* iformat);



void imInitFormatList(void)
{
  /* the initializing order must be the same of the IM.H enum */
  imAddFormatInit(imFormatBMP());
  imAddFormatInit(imFormatPCX()); 
  imAddFormatInit(imFormatGIF()); 
  imAddFormatInit(imFormatRAS());
  imAddFormatInit(imFormatLED()); 
}
